package com.lianxian.xindong.me.mvp.ui.adapter;

import android.view.View;

import com.hxb.library.base.BaseHolder;
import com.hxb.library.base.DefaultAdapter;
import com.lianxian.xindong.me.R;
import com.lianxian.xindong.me.mvp.model.entity.CircleBean;
import com.lianxian.xindong.me.mvp.ui.holder.CircleItemHolder;

import java.util.List;

public class CircleAdapter extends DefaultAdapter<CircleBean> {

    boolean delete;

    public CircleAdapter(boolean delete,List<CircleBean> infos) {
        super(infos);
        this.delete =delete;
    }

    @Override
    public BaseHolder<CircleBean> getHolder(View v, int viewType) {
        return new CircleItemHolder(v,delete);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_circle_me;
    }
}
